#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/11/27 20:36
# @Author  : 新猿异码
# @Site    : https://gitee.com/chshao/autotest
# @CSDN    : https://blog.csdn.net/m0_37576542?type=blog
# @File    : TestStepper.py
# @Desc    : 用来打印并记录测试步骤信息
# @Software: PyCharm
from autotest.kernel.modle.Variable import Var
from autotest.kernel.logger.AutoLogging import Log


def setup(msg: str):
    Log.info("预置条件: " + msg)
    Var.Case.Detail += f"预置条件: {msg}\n"


def step(msg: str):
    Log.info("测试步骤: " + msg)
    Var.Case.Detail += f"测试步骤: {msg}\n"


def check_point(msg: str):
    Log.info("检查点: " + msg)
    Var.Case.Detail += f"检查点: {msg}\n"


def teardown(msg: str):
    Log.info("后置操作: " + msg)
    Var.Case.Detail += f"后置操作: {msg}\n"
